package com.cas.scalls.util;

import java.util.HashMap;
import java.util.Map;

public class HttpResponse {
	public static final short RESPONSECODE_OK = 1;
	public static final short RESPONSECODE_SERVICE_EXCEPTION = 0;

	private int responseCode;
	private String responseMessage;
	private Map<String, String> headers = new HashMap<String, String>();

	public int getResponseCode() {
		return responseCode;
	}
	
	public void setResponseCode(int responseCode) {
		this.responseCode = responseCode;
	}
	
	public String getResponseMessage() {
		return responseMessage;
	}
	
	public void setResponseMessage(String responseMessage) {
		this.responseMessage = responseMessage;
	}
		

	public Map<String, String> getHeaders() {
		return headers;
	}
	/*===============================================================================================*/
	public void putHeader(String field, String value) {
		this.headers.put(field, value);
	}

	public String getHeader(String field) {
		return this.headers.get(field);
	}
	
}
